package com.qf.kady.ssm.service.impl;

import com.qf.kady.ssm.entity.ResultVO;
import com.qf.kady.ssm.mapper.BookMapper;
import com.qf.kady.ssm.mapper.DropLogMapper;
import com.qf.kady.ssm.pojo.Book;
import com.qf.kady.ssm.pojo.DropLog;
import com.qf.kady.ssm.service.DropLogService;
import net.sf.jsqlparser.statement.drop.Drop;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.Date;
import java.util.List;

/**
 * \* Created with IntelliJ IDEA.
 * \* User: kady
 * \* Date: 2021/4/21
 * \* Time: 11:50
 * \* 千峰JAVA2101班
 * \* Description: 借还日志业务层
 * \
 */
@Service
@Transactional
public class DropLogServiceImpl implements DropLogService {

    @Autowired
    private DropLogMapper dropLogMapper;

    @Override
    public List<DropLog> getDropLogList() {
        List<DropLog> dropLogs = dropLogMapper.selectDropLogList();
        return dropLogs;
    }

    @Override
    public boolean deleteDropLog(Long serNum) {
        return dropLogMapper.deleteDroplog(serNum);
    }

}
